package com.sean.designpatterns.behavioral.command.first;

public class Invoker {
    public ICommand command;

    public Invoker(ICommand command) {
        this.command = command;
    }

    public ICommand getCommand() {
        return command;
    }

    public void setCommand(ICommand command) {
        this.command = command;
    }

    public void RunCommand(){
        command.execute();
    }
}
